package zpx.model;

/**
 * 数据字典项分组类
 * 
 * @author Administrator
 *
 */
public class DataDictionaryItems {
	public DataDictionaryItems() {
	}

	// 数据字典项分组编码
	private String groupCode;
	// 数据字典项分组名称
	private String groupName;
	// 数据字典项详细
	private java.util.ArrayList items;

	public void setGroupCode(String code) {
		this.groupCode = code;
	}

	public String getGroupCoude() {
		return this.groupCode;
	}

	public void setGroupName(String name) {
		this.groupName = name;
	}

	public String getGroupName() {
		return this.groupName;
	}

	// 设置数据字典项
	public void setDataDictionaryItem(DataDictionaryItem item) {
		if (this.items == null)
			this.items = new java.util.ArrayList();
		this.items.add(item);
	}

	// 设置数据字典项
	public void setDataDictionaryItem(String itemName, String itemCode) {
		if (this.items == null)
			this.items = new java.util.ArrayList();
		DataDictionaryItem item = new DataDictionaryItem();
		item.setCode(itemCode);
		item.setName(itemName);
		this.items.add(item);
	}

	// 获得数据字典项组对象
	public java.util.ArrayList getDataDictioanryItems() {
		return this.items;
	}
}
